/**
 * Created by zhgk on 2016/9/19 0019.
 */
import {Component, OnInit} from "@angular/core";
import {Router} from "@angular/router";
import {ToasterService} from "angular2-toaster";
@Component({
    selector: 'login_form',
    template: require('./login.component.html')
})

export class LoginComponent implements OnInit {

    ngOnInit(): void {
    }

    constructor(private router: Router, private ts: ToasterService) {

    }

    //登录点击事件
    doLogin(): void {

        let link = ['/main'];
        this.router.navigate(link);
    }
}